cmake_minimum_required(VERSION 2.6)
project (Renderer)
find_package(OpenCV REQUIRED)
find_package(gflags REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(GLUT REQUIRED)
find_package(PNG REQUIRED)
#find_package(SFML 2 REQUIRED)
#find_package(cnpy REQUIRED)

set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "-std=c++0x -w")

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${OPENGL_INCLUDE_DIRS} ${GLEW_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
#add_subdirectory(cv_utils)

#link_directories()
#} /opt/gurobi650/linux64/include)
file(GLOB SOURCES "*.cpp")
#add_executable(Renderer ${SOURCES})
#add_executable(Renderer example.cpp tinyply.cpp)
add_executable(Renderer main.cpp)
target_link_libraries(Renderer opencv_core opencv_imgproc opencv_imgcodecs ${GFlags_LIBS} ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES} ${GLUT_LIBRARY} ${PNG_LIBRARY} gflags OpenMeshCore OpenMeshTools)
